home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / c / stdlib / cfree.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-03-22  |  1.3 KB  |  49 lines

  1. /* 
  2.  * cfree.c --
  3.  *
  4.  *    Source code for the "cfree" library procedure.
  5.  *
  6.  * Copyright 1988 Regents of the University of California
  7.  * Permission to use, copy, modify, and distribute this
  8.  * software and its documentation for any purpose and without
  9.  * fee is hereby granted, provided that the above copyright
  10.  * notice appear in all copies.  The University of California
  11.  * makes no representations about the suitability of this
  12.  * software for any purpose.  It is provided "as is" without
  13.  * express or implied warranty.
  14.  */
  15.  
  16. #ifndef lint
  17. static char rcsid[] = "$Header: /sprite/src/lib/c/stdlib/RCS/cfree.c,v 1.1 88/06/27 17:24:06 ouster Exp $ SPRITE (Berkeley)";
  18. #endif not lint
  19.  
  20. #include <stdlib.h>
  21.  
  22. /*
  23.  *----------------------------------------------------------------------
  24.  *
  25.  * cfree --
  26.  *
  27.  *    Free a block of storage allocated with calloc.  Actually,
  28.  *    this routine is identical to free, and isn't really even
  29.  *    needed.
  30.  *
  31.  * Results:
  32.  *    None.
  33.  *
  34.  * Side effects:
  35.  *    Storage gets freed.
  36.  *
  37.  *----------------------------------------------------------------------
  38.  */
  39.  
  40. /* ARGSUSED */
  41.  
  42. cfree(block, numElements, size)
  43.     char *block;        /* Address of block to be freed. */
  44.     unsigned int numElements;    /* Number of elements in block (not used). */
  45.     unsigned int size;        /* Size of each element (not used). */
  46. {
  47.     free(block);
  48. }
  49.